package demo2;

public class Dog {
    public String name;
    public int age;
    // public boolean flg;

    public void eat(){
        System.out.println(this.name + "正在吃狗粮...");
    }

    public void bark(){
        System.out.println(this.name + "正在旺旺叫...");
    }

    public void sleep(){
        System.out.println(this.name + "正在睡觉...");
    }

    public void show(){
        System.out.println("姓名:" + name + ", 年龄:" + age);
    }
}
